//
//  QKThreeLinkageController.swift
//  HHSwift
//
//  Created by 华宏 on 2020/2/4.
//  Copyright © 2020 huahong. All rights reserved.
//

import UIKit

class QKThreeLinkageController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

         view.backgroundColor = .white
         title = "三级联动"
        
        let threeViw = QKThreeLinkageView.init(frame: CGRect(x: 0, y: 200, width: self.view.width, height: 50))
            view.addSubview(threeViw)
           threeViw.threeLinkageViewBlock = {(cityId:NSNumber?, cityName:String?, companyId:NSNumber?,companyName:String?, serviceId:NSNumber?, serviceName:String?) in
            
            print("cityId:\(String(describing: cityId))")
            print("cityName:\(cityName ?? "nil")")
            print("companyId:\(String(describing: companyId))")
            print("companyName:\(companyName ?? "nil")")
            print("serviceId:\(String(describing: serviceId))")
            print("serviceName:\(serviceName ?? "nil")")

        }
    }
    

    

}
